﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using mesoBoard.Data;
using mesoBoard.Data.Repositories;
using System.Drawing.Imaging;
using System.Drawing;
using System.Text.RegularExpressions;
using System.Web.Mvc;

namespace mesoBoard.Services
{
    public class Categories : ICategories
    {
        private IRepositoriesWrapper Repositories;

        public Categories(IRepositoriesWrapper repos)
        {
            this.Repositories = repos;
        }

        public IEnumerable<Category> GetViewableCategories(User currentUser)
        {
            IEnumerable<Category> AllCategories = Repositories.Categories.GetCategories();

            return null;
            // return AllCategories.Where(x => x.Forums.Count != 0 && x.Forums.Any(y => y.CanView(currentUser))).OrderBy(x => x.Order);
        }
    }
}